 
  function check()   
  {   
	  var id =  QueryString("itemIDStr")
	  if(document.form1.reason[0].checked){   
		  var r = confirm("Confirm deletion?");
		  if(r==true)
		  self.location="/seller/removeItem?itemIDStr="+id+"&reason="+document.form1.reason[0].value;
	  }   
	  else if(document.form1.reason[1].checked){   
		  var r = confirm("Confirm deletion?");
		  if(r==true)
		  self.location="/seller/removeItem?itemIDStr="+id+"&reason="+document.form1.reason[1].value;
	  }   
	  else if(document.form1.reason[2].checked){   
		  var r = confirm("Confirm deletion?");
		  if(r==true)
		  self.location="/seller/removeItem?itemIDStr="+id+"&reason="+document.form1.reason[2].value;
	  }
	  else if(document.form1.reason[3].checked){   
		  var r = confirm("Confirm deletion?");
		  if(r==true)
		  self.location="/seller/removeItem?itemIDStr="+id+"&reason="+document.form1.reason[3].value;
	  }
	  else if(document.form1.reason[4].checked){   
		  var r = confirm("Confirm deletion?");
		  if(r==true)
		  self.location="/seller/removeItem?itemIDStr="+id+"&reason="+document.form1.reason[4].value;
	  }
	  else if(document.form1.reason[5].checked){   
		  var r = confirm("Confirm deletion?");
		  if(r==true)
		  self.location="/seller/removeItem?itemIDStr="+id+"&reason="+document.form1.reason[5].value;
	  }
	  else{
	  	alert("please choose your reason why delete this item"); 
	  }  
  }
  function QueryString(key) {

	var reg= new RegExp (key + "=([^&#]*)","i");
	
	var value = reg.exec(location.href);
	
	if ( value == null )return null;
	
	return decodeURI(value[1]);

}   
